package com.yeswater.multithread.chapter2.test2_1.test6;

/**
 * author : yeswater
 * date : 2023/10/19
 */

public class ThreadA extends Thread{

    private PublicVar publicVar;

    public ThreadA(PublicVar publicVar) {
        this.publicVar = publicVar;
    }

    @Override
    public void run() {
        publicVar.setValue("B", "BB");
    }
}
